.input-transition {
  height: 80px;
  transition: all 0.5s ease;
}

.input-animation-enter,
.input-animation-leave-active {
  opacity: 0;
  transform: translateX(50%);
}

.input-animation-enter,
.input-animation-leave-to {
  height: 0;
}

.input-hide {
  height: 0 !important;
}

.container-form {
  width: 400px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.group-title {
  height: 40px;
  padding-bottom: 10px;
  display: flex;
  align-items: flex-end;
  user-select: none;
  color: #fff;
  box-sizing: initial;
  .item-title {
    margin-right: 10px;
    display: flex;
    align-items: flex-end;
    font-weight: bold;
    transition: all 1s;
    font-size: 16px;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    color: @navButton;
    cursor: pointer;
    &.active {
      font-size: 28px;
      color: @navButtonActive;
    }
  }
  .item-switchaction {
    width: 60px;
    margin-left: 5px;
    position: absolute;
    right: 0;
    transition: transform 0.5s;
    transform-origin: right bottom;
    transform: scale(0);
    display: block;
    font-size: 12px;
    &.active {
      color: @navButtonActive;
      transform: scale(1);
    }
  }
}

.group-button {
  display: flex;
  justify-content: space-between;
  flex: 1;
  .item-button {
    width: 50%;
    margin-top: 10px;
    position: relative;
    border: 1px solid @navButton;
    font-weight: bold;
    background: @navButton;
    color: @navButton;
    color: #fff;
    transition: all 1s;
    z-index: 1;
    &:last-child {
      margin-left: 10px;
    }
    &.active {
      background: transparent;
      border: 1px solid #fff;
      transition: all 1s;
      &::before,
      &::after {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 4px;
        background-color: @navButtonActive;
        transform-origin: left;
        transform: scaleX(0);
        animation: button-animation 1s forwards;
      }
      &::before {
        transform-origin: left;
      }
      &::after {
        transform-origin: right;
      }
    }
  }
}

.group-other {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  padding-top: 10px;
  user-select: none;
  >.i-other {
    color: @navButton;
    margin-left: 10px;
    text-decoration: underline @navButton;
    cursor: pointer;
  }
}

@keyframes button-animation {
  100% {
    transform: scaleX(1);
  }
}
